﻿using HotChocolate.Language;
using SimpleGraphQLDemo.WebApi.GraphTypes.Orders.Types;

namespace SimpleGraphQLDemo.WebApi.GraphTypes.Orders.Queries;

[ExtendObjectType(OperationType.Query)]
public class OrderQueryResolver
{
    public OrderGraphType GetOrder() => new OrderGraphType
    {
        Title = "This is order service."
    };

    public string GetCurrentTime1() => DateTime.Now.ToString();
    public string GetCurrentTime2() => DateTime.Now.ToString();
    public string GetCurrentTime3() => DateTime.Now.ToString();
}